\includegraphics[width=\textwidth]{example-image}
some text

\includegraphics[width=\textwidth]{example-image}%
some text

\includegraphics[width=\textwidth]{example-image} %

% the end of the next line contains a trailing space
\includegraphics[width=\textwidth]{example-image}
some text
